#
#2008 Julka Lipkova
#

import pygtk
pygtk.require('2.0')
import gtk

class LineBackground ( ):
    def __init__(self):
        pass

    def on_expose( self, event, context, dArea ):
        context.set_line_width(2)
        context.set_source_rgba( 0, 0.5, 1, 1 )
        x1 = dArea.dArea.get_allocation().x
        x2 = x1 + dArea.dArea.get_allocation().width

        context.move_to( x1, dArea.baseLineY );
        context.line_to( x2, dArea.baseLineY );
        context.move_to( x1, dArea.baseLineY - dArea.lineHeight );
        context.line_to( x2, dArea.baseLineY - dArea.lineHeight );
        context.stroke();



# vim: set ts=4 sw=4 sts=4 et :

